#ifndef __StringUtil__
#define __StringUtil__

#include <string>
#include <vector>

using namespace std;

class FrameworkStringUtil
{
public:
    static std::string format(const char* formatStr, ...);
	static void split(const string& src, const string& separator, vector<string>& dest, bool isNull = false);
	static std::string trim(std::string& str);
	static int unicode2Utf8(const wchar_t* unicode, char* utf8, int nBuffSize);
	static string gb2312ToUtf8(const string& input);
};

#define IntToString(__var)  StringUtil::format("%d",__var)
#endif /* StringUtil_h */
